
package encoding;

/**
 * @author Steven Turner
 * StudentID: 070014468
 * @version .1a
 * 
 */
public class TableEntry {
	// Symbol from the source alphabet to be encoded.
	private char sourceSymbol;
	// Probability of the symbol occurring in the information source.
	private double probability;
	// Binary Coding String of the symbol.
	private String codeword;

	/**
	 * @return the sourceSymbol
	 */
	public char getSourceSymbol() {
		return sourceSymbol;
	}

	/**
	 * @param sourceSymbol
	 *            the sourceSymbol to set
	 */
	public void setSourceSymbol(char sourceSymbol) {
		this.sourceSymbol = sourceSymbol;
	}

	/**
	 * @return the probability
	 */
	public double getProbability() {
		return probability;
	}

	/**
	 * @param probability
	 *            the probability to set
	 */
	public void setProbability(double probability) {
		this.probability = probability;
	}

	/**
	 * @return the codeword
	 */
	public String getCodeword() {
		return codeword;
	}

	/**
	 * @param codeword
	 *            the codeword to set
	 */
	public void setCodeword(String codeword) {
		this.codeword = codeword;
	}

}
